<template>
  <view>
    <!-- <van-nav-bar left-text="返回" left-arrow @click-left="onClickLeft" /> -->
    <view class="view-main">
      <web-view :src="state.pageUrl"></web-view>
    </view>
  </view>
</template>

<script setup>
import { onLoad } from "@dcloudio/uni-app";
import { reactive, getCurrentInstance, onMounted } from "vue"
const onClickLeft = () => history.back();

const state = reactive({
  pageUrl: 'https://www.baidu.com'
})

onLoad((options) => {
  state.pageUrl = options.pageUrl
})

</script>

<style lang="scss" scoped>
.view-main{
  margin-top: 90rpx;
}
</style>
